package com.secfound.soccer.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.secfound.soccer.shared.db.Bet;
import com.secfound.soccer.shared.db.Challenger;
import com.secfound.soccer.shared.db.Game;
import com.secfound.soccer.shared.db.Team;

/**
 * The async counterpart of <code>BettingService</code>.
 * @author alfonso.ayala
 *
 */
public interface BettingServiceAsync {
	void checkScore(Bet bet, AsyncCallback<String> callback);
	void storeBet(Bet bet, AsyncCallback<Challenger> callback);
	void listBets(Bet bet, AsyncCallback<List<Bet>> callback);
	void listGames(Game game, AsyncCallback<List<Game>> callback);
	void listTeams(Team team, AsyncCallback<List<Team>> callback);
}
